import React from 'react';
import style from './Regist.module.scss';
import RegistForm from './registForm';
import { Layout } from 'antd';
import logo from "../../assets/img/nlx.png";
import { NavLink } from 'react-router-dom';

const { Header, Content, Footer } = Layout;

class Login extends React.Component {
  constructor(props) {
    super(props)
  }

  render() {
    return (
      <div className={style.container}>
        <Header className={style.header}>
          <div className={style.logo_box}>
            <img src={logo} />
          </div>
        </Header>
        <Content className={style.mainCont}>
          <div className={style.form_box}>
            <div className={style.title}>
              <span className={style.ht}>用户注册</span>
              <div style={{ float: 'right', marginTop: '5px' }}>
                <span>已有账号？</span>
                <NavLink to="/login" className={style.goto_tips}>点此登录</NavLink>
              </div>
            </div>
            <RegistForm></RegistForm>
          </div>
        </Content>
        <Footer className={style.footer}>
          justinzyh ©2020 Created by zyh justin
        </Footer>
      </div>
    )
  }
}
export default Login;